#include "myhead.h"

int main()
{
	char bmpbuf[30054];
	char buf[]={'h','1','0','l','o'};
	printf("strlen(buf) is:%d  sizeof(buf) is:%d\n",strlen(buf),sizeof(buf));
	
	char buf1[]={'h','1',0,'l','o'};
	printf("strlen(buf1) is:%d  sizeof(buf1) is:%d\n",strlen(buf1),sizeof(buf1));
	
	int fd=open("1.bmp",O_RDWR);
	if(fd==-1)
	{
		perror("打开失败");
		return -1;
	}
	
	read(fd,bmpbuf,30054);
	printf("strlen(bmpbuf) is:%d\n",strlen(bmpbuf));
	
}